package com.chee.plant.hibernate.object;

import java.util.Calendar;

import com.chee.plant.hibernate.object.base.BaseFarmPlant;

public class FarmPlant extends BaseFarmPlant {
	private static final long serialVersionUID = 1L;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public FarmPlant() {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public FarmPlant(java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public FarmPlant(java.lang.Integer id, java.lang.Integer userId,
			java.lang.Integer type, java.lang.Integer coordX,
			java.lang.Integer coordY, java.lang.Integer userplantId,
			java.util.Date growTime) {

		super(id, userId, type, coordX, coordY, userplantId, growTime);
	}

	/* [CONSTRUCTOR MARKER END] */
public void setDefaults(){
	this.setCoordX(0);
	this.setCoordY(0);
	this.setGrowTime(Calendar.getInstance().getTime());
	this.setId(0);
	this.setType(0);
	this.setUserId(0);
	this.setUserplantId(0);
}
}